package com.example.main.fragment.home

import androidx.lifecycle.MutableLiveData
import com.example.lib_base.mvvm.BaseViewModel
import com.example.main.fragment.home.bean.HomeNotionEntity
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class HomeViewModel  @Inject constructor(private val repo: HomeRepo):BaseViewModel(){
    val homeNotionSuccess= MutableLiveData<MutableList<HomeNotionEntity>>()
    fun getHomeNotion( page:Int,size:Int){
        httpRequest({repo.apiService.getHomeNotion(page,size)},{homeNotionSuccess.postValue(it)})
    }
}